//
//  RegBarsAppDelegate.h
//  RegBars
//
//  Created by Huu Nhat on 7/25/11.
//  Copyright 2011 __MyCompanyName__. All rights reserved.
//

#import <UIKit/UIKit.h>

@interface RegBarsAppDelegate : NSObject <UIApplicationDelegate>{
	int date;
	NSMutableDictionary *restaurantDict;
	NSMutableArray *currentWeek;
	NSMutableArray *nextWeek;
	NSMutableArray *mondayPlans;
	NSMutableArray *tuesdayPlans;
	NSMutableArray *wednesdayPlans;
	NSMutableArray *thursdayPlans;
	NSMutableArray *fridayPlans;
	NSMutableArray *nextmondayPlans;
	NSMutableArray *nexttuesdayPlans;
	NSMutableArray *nextwednesdayPlans;
	NSMutableArray *nextthursdayPlans;
	NSMutableArray *nextfridayPlans;
	int currentDayValue;
	int planParseCount;
    
    NSString *currentCityId;
}

@property (nonatomic, retain) IBOutlet UIWindow *window;
@property (nonatomic, assign) int date;
@property (nonatomic, retain) NSMutableDictionary *restaurantDict;
@property (nonatomic, retain) NSMutableArray *currentWeek;
@property (nonatomic, retain) NSMutableArray *nextWeek;
@property (nonatomic, retain) NSMutableArray *mondayPlans;
@property (nonatomic, retain) NSMutableArray *tuesdayPlans;
@property (nonatomic, retain) NSMutableArray *wednesdayPlans;
@property (nonatomic, retain) NSMutableArray *thursdayPlans;
@property (nonatomic, retain) NSMutableArray *fridayPlans;

@property (nonatomic, retain) NSMutableArray *nextmondayPlans;
@property (nonatomic, retain) NSMutableArray *nexttuesdayPlans;
@property (nonatomic, retain) NSMutableArray *nextwednesdayPlans;
@property (nonatomic, retain) NSMutableArray *nextthursdayPlans;
@property (nonatomic, retain) NSMutableArray *nextfridayPlans;
@property (nonatomic, assign) int currentDayValue;
@property (nonatomic, retain) NSString *currentCityId;

- (BOOL) connectedToNetwork;
- (void) calculateDate;
- (void) initCurrentWeekPlans;
- (void) initNextWeekPlans;

@end
